<%--
  Created by IntelliJ IDEA.
  User: zhuhui
  Date: 2017/4/19
  Time: 16:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/common/taglibs.jsp" %>
<core:set var="ctx" value="${pageContext.request.contextPath}"/>
<script src="${ctx}/js/bootstrap/bootstrap-datetimepicker.js"></script>
<script src="${ctx}/js/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
<html>
<head>
    <title>批量导入查询</title>
    <script src="${ctx}/js/views/specially/commBatch.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">
<core:import url="../common/pageHead.jsp">
    <core:param name="title" value="批量信息查询 "/>
</core:import>
    <div ng-controller="batchCtrl" class="container-fluid">
        <form id="findForm" name="findForm" action="${ctx}/riskInfo/batchInfoImportQuery/findList" autocomplete="off">
            <table class="table table-condensed">
                <tr>
                    <td class="text-right" style="padding-top: 12px;">
                        客户属性
                    </td>
                    <td>
                        <%--<input type="text" ng-model="vm.queryBean.roleType" class="{{vm.constant.inputClass}}">--%>
                        <select id="q_type" class="form-control input-sm form-control-inline" ng-model="vm.findBean.cusProperty" style="width: 200px" required
                                ng-options="key as value for (key,value) in vm.cached.CUSTPROPERTY" >
                            <option value="">请选择</option>
                        </select>
                    </td>
                    <td class="text-right" style="padding-top: 12px;">
                        关键字
                    </td>
                    <td>
                        <select class="form-control input-sm form-control-inline" ng-model="vm.findBean.keyWord" style="width: 200px" required
                        ng-options="key as value for (key,value) in vm.cached.Q_TYPE_CODE" >
                            <option value="">请选择</option>
                        </select>
                    </td>

                    <td class="text-right" style="padding-top: 12px;">
                        关键信息值
                    </td>
                    <td>
                       <textarea ng-model="vm.findBean.infos" placeholder="多个条件请以逗号(,)分割" style="width: 400px" required></textarea>
                    </td>
                </tr>
                <tr align="center">
                    <td colspan="6">
                        <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                        <button type="button" ng-click="vm.resetForm()" class="btn btn-default">重置</button>
                    </td>
                </tr>
            </table>
        </form>
            <table table-detail>
                <thead>
                <tr>
                    <%--<th>
                        <input type="checkbox" ng-model="_checkedAll" checkbox-all="">
                    </th>--%>
                    <th>客户属性</th>
                    <th>风险类型</th>
                    <th>法人姓名/商户简称</th>
                    <th>法人手机号</th>
                    <th>证件号码</th>
                    <th>详细信息</th>
                </tr>
                </thead>
                <tbody ng-repeat="bean in vm.pagination.list track by $index">
                <tr>
                    <%--<td>
                        <input name="check" type="checkbox" ng-model="bean._checked" ng-click="">
                    </td>--%>
                    <td>{{vm.cached.CUSTPROPERTY[bean.cusProperty]}}</td>
                    <td>{{vm.cached.TD_RISK_TYPE[bean.riskType]}}</td>
                    <td>{{bean.cusName}}</td>
                    <td>{{bean.mobileNo}}</td>
                    <td>{{bean.docCode}}</td>
                    <td><button ng-click="vm.queryDetailed(bean)">查看详细信息</button></td>
                </tr>

                </tbody>


                <tfoot>
                <tr>


                </tr>
                </tfoot>
            </table>

        <%--<core:import url="../common/pageFoot.jsp"/>--%>
    </div>

    <core:import url="../common/nav.jsp"/>
</body>
</html>
